<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<div id="menu">
				<ul>
					<li><spring:url value="/" var="mainpage_url" />
<a href="${mainpage_url}">Main Page</a></li>
					<li><sec:authorize access="hasRole('ROLE_USER')">
<spring:url value="/user" var="user_homepage_url" />
<a href="${user_homepage_url}">Homepage</a>
</sec:authorize></li>
					<li><sec:authorize access="hasRole('ROLE_ADMIN')">
<spring:url value="/admin/" var="admin_url" />
<a href="${admin_url}">Administrate</a>
</sec:authorize></li>
					<li><sec:authorize access="isAnonymous()">
<spring:url value="/login" var="login_url" />
<a href="${login_url}">Sign in</a>
</sec:authorize></li>
					<li><sec:authorize access="isAuthenticated()">
<spring:url value="/logout" var="logout_url" />
<a href="${logout_url}">Logout</a>
</sec:authorize></li>
				</ul>
			</div>	
	









